package com.huluobo.lib_base.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.huluobo.lib_base.bean.SearchBean

/**
 *  Created by LC on 2025/9/25.
 */
@Dao
interface SearchDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertSearch(searchBean: SearchBean)

    @Delete
    suspend fun deleteSearch(searchBean: SearchBean)

    @Query("select * from search_info")
    suspend fun queryAllSearch(): List<SearchBean>
}